import { createRouter,createWebHistory,createWebHashHistory } from 'vue-router';

const login = () => import("./views/login/index.vue");
const home = () => import("./views/home/layout.vue");
const baseparameter = () => import("./views/basedata/baseparameter.vue");  //基本参数
const sourcesoffund = () => import("./views/basedata/sourcesoffund.vue");  //资金来源
const cost = () => import("./views/basedata/cost.vue");  //成本费用
const incomeandtaxes = () => import("./views/basedata/incomeandtaxes.vue");  //收入和税金
const routes = [
  {
    path: "/",
    redirect:'login'
  },{
    path: "/login",
    name: "login",
    component: login,
  },{
    path: "/home",
    name: "home",
    component: home,
    children:[{
      path: '/baseparameter',
      name: 'baseparameter',
      component: baseparameter
    },{
      path: '/sourcesoffund',
      name: 'sourcesoffund',
      component: sourcesoffund

    },{
      path: '/cost',
      name: 'cost',
      component: cost
    },{
      path: '/incomeandtaxes',
      name: 'incomeandtaxes',
      component: incomeandtaxes
    }
    ],
  },
];
 
const router = createRouter({
    history: createWebHistory(),  
    routes:routes
});

export default router;